import req from '@/utils/request'
const baseURL = process.env.VUE_APP_BASE_URL

export function getRules(data) {
    return req({
        method: 'get',
        url: baseURL + "/superlink/api/mergeRule/list",
        params: data
    })
}

export function delRule(token) {
    return req({
        method: 'delete',
        url: baseURL + "/superlink/api/mergeRule/delete/" + token,
    })
}
export function putRule(data, token) {
    return req({
        method: 'put',
        url: baseURL + "/superlink/api/mergeRule/update/" + token,
        data
    })
}
export function postRule(data) {
    return req({
        method: 'post',
        url: baseURL + "/superlink/api/mergeRule/create",
        data
    })
}
export function getRuleDetails(token) {
    return req({
        method: 'get',
        url: baseURL + "/superlink/api/mergeRule/byToken/" + token,
    })
}


